<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			P{
				background: pink;
				
			}
		</style>
	</head>
	<body>
		<button class="btn" id="btn">宽度</button>
		<p id="widthp">This is paragraph</p>
		
		<script src="jquery-1.11.1.min.js" type="text/javascript"></script>
		<script type="text/javascript">
		 $("#btn").bind("click",function(){
		 	$("#widthp").width(600);
			$("#widthp").attr("width","600");
	
		 })

		</script>
	</body>
</html>
